package com.crcc.materialinventory;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//Servlet、Filter、Listener可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册
@ServletComponentScan
//扫描含有spring注解的文件，如controller,service
@ComponentScan({"com.crcc.common", "com.crcc.materialinventory"})
//专用送秒mapper的
@MapperScan({"com.crcc.materialinventory.mapper"})
@EnableCaching
@EnableScheduling
@EnableTransactionManagement
public class MaterialINVENTORYApplication {

    public static void main(String[] args) {
        SpringApplication.run(MaterialINVENTORYApplication.class, args);
    }

}
